﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Prototype.master" AutoEventWireup="false" CodeFile="AddArticles.aspx.vb" Inherits="Articles_AddArticles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fieldset>
<legend>Author</legend>
    First Name:<asp:TextBox ID="txtfirstname" runat="server"></asp:TextBox></br>
    Last Name:<asp:TextBox ID="txtlastname" runat="server"></asp:TextBox></br>
</fieldset>

<fieldset>
<legend>Article</legend>
Article Content:<asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" 
        Height="277px" Width="330px"></asp:TextBox>
</fieldset>

<fieldset>
<legend>Article Details</legend>    
Article Topic:<asp:DropDownList ID="ddl_Articles" runat="server" 
        DataSourceID="DDLArticles" DataTextField="Type" DataValueField="Type">
    </asp:DropDownList>
    <asp:SqlDataSource ID="DDLArticles" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT [ID], [Type] FROM [tblArticleType]">
    </asp:SqlDataSource>
    </br>
    Submission Date:<asp:TextBox ID="txtSubDate" runat="server"></asp:TextBox></br>
    Submit Picture:<asp:TextBox ID="txtPicture" runat="server">
    </asp:TextBox><asp:FileUpload ID="FileUpload1" runat="server" />
</fieldset>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit Article" />
</asp:Content>

